package com.example.myblog01.service.impl;

import com.example.myblog01.dao.UserServiceDao;
import com.example.myblog01.pojo.User;
import com.example.myblog01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {


    @Autowired
    private UserServiceDao userServiceDao;

    @Override
    public User chickUser(String username, String password) {
        User user = userServiceDao.findByUsernameAndPassword(username,password);
        return user;
    }
}
